//
//  defines.c
//  compilation
//
//  Created by Kevin Le perf on 17/01/12.
//  Copyright (c) 2012 e2co technologie. All rights reserved.
//
#include <stdlib.h>
#include <stdio.h>
#include "defines.h"

void type_print(enum type type){
	switch(type){
		case TYPE_VOID:
			printf("void");
			break;
		case TYPE_INT:
			printf("int");
			break;
		case TYPE_FLOAT:
			printf("float");
			break;
	}
}

void operator_print(enum op op){
	switch(op){
		case OP_EQU:
			printf("=");
			break;
		case OP_ADD:
			printf("+");
			break;
		case OP_SUB:
			printf("-");
			break;
		case OP_MUL:
			printf("*");
			break;
	}
}
